﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DDBuildTools.DataAccess.Components
{
    /// <summary>
    /// 列信息
    /// </summary>
    public class TableColume
    {
        #region "Private Variables"
        private string _Colume_Code;
        private string _Colume_Name;
        private string _Colume_Type;
        private string _Colume_Length;
        private string _Colume_Scale;
        private string _Colume_DefaultValue;
        private bool _Colume_IsKey = false;
        private bool _Colume_IsNullAble = false;
        private bool _Colume_Identity = false;
        #endregion

        #region "Public Variables"
        /// <summary>
        /// 列代码
        /// </summary>
        public string Colume_Code
        {
            get
            {
                return _Colume_Code;
            }
            set
            {
                _Colume_Code = value;
            }
        }
        /// <summary>
        /// 列名称
        /// </summary>
        public string Colume_Name
        {
            get
            {
                return _Colume_Name;
            }
            set
            {
                _Colume_Name = value;
            }
        }
        /// <summary>
        /// 列类型
        /// </summary>
        public string Colume_Type
        {
            get
            {
                return _Colume_Type;
            }
            set
            {
                _Colume_Type = value;
            }
        }
        /// <summary>
        /// 列长度
        /// </summary>
        public string Colume_Length
        {
            get
            {
                return _Colume_Length;
            }
            set
            {
                _Colume_Length = value;
            }
        }
        /// <summary>
        /// 小数位数
        /// </summary>
        public string Colume_Scale
        {
            get {
                return _Colume_Scale;
            }
            set {
                _Colume_Scale = value;
            }
        }

        /// <summary>
        /// 列默认值
        /// </summary>
        public string Colume_DefaultValue
        {
            get
            {
                return _Colume_DefaultValue;
            }
            set
            {
                _Colume_DefaultValue = value;
            }
        }
        /// <summary>
        /// 是否主键
        /// </summary>
        public bool Colume_IsKey
        {
            get
            {
                return _Colume_IsKey;
            }
            set
            {
                _Colume_IsKey = value;
            }
        }
        /// <summary>
        /// 是否允许空值
        /// </summary>
        public bool Colume_IsNullAble
        {
            get
            {
                return _Colume_IsNullAble;
            }
            set
            {
                _Colume_IsNullAble = value;
            }
        }
        /// <summary>
        /// 是否自动增长
        /// </summary>
        public bool Colume_Identity
        {
            get
            {
                return _Colume_Identity;
            }
            set
            {
                _Colume_Identity = value;
            }
        }
        #endregion
    }
}
